package com.like.shopmanager;

import org.xutils.x;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.like.entity.M;

import cn.jpush.android.api.JPushInterface;

public class BaseActivity extends AppCompatActivity {

	protected M m;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		x.view().inject(this);
		m = new M(this);
	}

	@Override
	protected void onResume() {
		super.onResume();
		JPushInterface.onResume(m.mContext);
	}

	@Override
	protected void onPause() {
		super.onPause();
		JPushInterface.onPause(m.mContext);
	}
}
